/**
 * @projectName: pet-joy-home
 * @author: 小飞
 * @description: TODO
 * @date: 2024/3/4 9:45
 * @version: 1.0
 */
package com.home.dto;

import lombok.Data;
import lombok.Getter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Getter
@Data
public class CreateUserDTO implements Serializable {

    @NotBlank(message = "用户名不能为空!")
    private String username; // 用户名

    private String nickname; // 昵称

    private String avatar; //头像

    @NotBlank(message = "性别不能为空!")
    private String sex; //性别

    @NotBlank(message = "邮箱不能为空")
    private String email;//邮箱

    @NotBlank(message = "电话不能为空")
    private String phone; //电话
}